//<template>
  <div>
    
    <el-container class="el">
  <el-aside width="200px">
      <el-menu :default-openeds="['1', '3']">
        <el-submenu index="1">
        <template slot="title"><i class="el-icon-setting"></i>
        <router-link to="/home/index">导航1</router-link>
        </template>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-setting"></i>
           <router-link to="/home/fl">导航2</router-link></template>
      </el-submenu>
   <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>
           <router-link to="/home/home">导航3</router-link></template>
      </el-submenu>
      <el-submenu index="4">
        <template slot="title"><i class="el-icon-setting"></i>
           <router-link to="/home/my">导航4</router-link></template>
      </el-submenu>
    </el-menu>
  </el-aside>
  <el-container>
    <el-header>Header</el-header>
    <el-main>
        <router-view/>
      Main

    </el-main>
  </el-container>
</el-container>
  </div>
</template>

<script>
export default {

}
</script>

<style>
.el-menu{
  margin-top: 500px;
}
.el{
  width: 100%;
  height: 100vh;
}
 .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>